/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package officeboost.entity.form;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.jbpm.api.ExecutionService;

/**
 *
 * @author wangfrank
 */
//@Entity
public class BusinessTripForm extends AbstractForm implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    private String applier;
    private String number;
    private String task;
    private String destination;
    private String time_span;
    private String school_opinion;
    private String college_opinion;
    private int status;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCollege_opinion() {
        return college_opinion;
    }

    public void setCollege_opinion(String college_opinion) {
        this.college_opinion = college_opinion;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getSchool_opinion() {
        return school_opinion;
    }

    public void setSchool_opinion(String school_opinion) {
        this.school_opinion = school_opinion;
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public String getTime_span() {
        return time_span;
    }

    public void setTime_span(String time_span) {
        this.time_span = time_span;
    }

    public String getApplier() {
        return applier;
    }

    public void setApplier(String applier) {
        this.applier = applier;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof BusinessTripForm)) {
            return false;
        }
        BusinessTripForm other = (BusinessTripForm) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "officeboost.entity.form.BusinessTripForm[ id=" + id + " ]";
    }

    @Override
    public String apply(ExecutionService es) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Long theId() {
	throw new UnsupportedOperationException("Not supported yet.");
    }
}
